#!/usr/bin/env sh
set -e
echo "Enter commit message:" 
read message
read -p "are you sure commit? (y/n)" -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
  echo "commiting......"

  # commit
  git add .
  git commit -m "$message"
  git push origin master
fi